package JAVASE513;

import java.util.Scanner;

public class JAVAswitch {
    public static void main(String[] argc){
        //键盘录入周几
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入周几：");
        int week= sc.nextInt();
        switch(week){
         case 1->System.out.println("JAVA");
         case 2->System.out.println("数据结构");
         case 3->System.out.println("数据库");
         case 4->System.out.println("计算机网络");
         case 5->System.out.println("概率论");
         case 6->System.out.println("Linux");
         case 7->System.out.println("苍穹外卖");
         default ->System.out.println("无");
        }
    }
}
